
cmake_minimum_required(VERSION 3.5.1)

project(youwant-creator LANGUAGES CXX VERSION 0.0.1)

include(cmake/SparkEnvConfig.cmake)
include(cmake/SparkMacrosConfig.cmake)
# include(cmake/SparkFindLibraries.cmake)
include(cmake/SparkFindQt5Config.cmake)
include(cmake/SparkFindQt6Config.cmake)


# -------- Components
spark_add_libraries_path(NetworkIcon Components/NetworkIcon)
spark_add_libraries_path(NetworkRequest Components/NetworkRequest)
target_link_qt5(NetworkIcon)
target_link_qt5(NetworkRequest)

# -------- BaseWidget
spark_add_libraries_path(BaseWidget Extensions/BaseWidget)
target_link_qt5(BaseWidget)
# -------- YouwantDeclar
spark_add_libraries_path(YouwantDeclar Extensions/Youwant/YouwantDeclar)
target_link_qt5(YouwantDeclar)
spark_add_libraries_path(YouwantWidget Extensions/Youwant/YouwantWidget)
target_link_BaseWidget(YouwantWidget)
target_link_YouwantDeclar(YouwantWidget)

# -------- Document
spark_add_libraries_path(Document Extensions/Document)
target_link_qt5(Document)
# -------- FileUpload
spark_add_libraries_path(FileUpload Extensions/FileUpload)
target_link_qt5(FileUpload)

# 资源文件路径
set(QRC_SOURCES "")

spark_add_executable_path(${PROJECT_NAME} src
    ${QRC_SOURCES}
)
target_link_YouwantWidget(${PROJECT_NAME})


# -------- install 
# include(cmake/linux-install/linux-install.cmake)
